This macro typesets a 5-membered ring with 2 hetero atoms
separated by a carbon atom. Thus it can be used to print ring
systems such as imidazole, thiazole, and oxazole. The arguments
were selected by considering actually occurring compounds
containing these ring systems. Ring positions 1, 2, 3, 4, and 5
are the positions to which R1–R5 are
attached.
$
R1$$
R2$$
R3$$
R4$$
R5$
Q$
R7$$
N$$
N$
QOQQQQDNO
- Arguments 1, 3, 5:
- An argument of ``Q''
causes no action. All other argument values are used as
the respective substituent formulas R1, R3,
and R5.
- Argument 2:
- An argument of ``Q''causes no
action. An argument of ``O'' puts an outside double bond
with an O in ring position 2. All other argument values
are used as the substituent formula R2 with
a single bond.
- Argument 4:
- An argument of ``Q''causes
no action. An argument of ``O'' puts an outside double bond
with an O in ring position 4. All other argument values
are used as the substituent formula R4 with a
single bond.
- Argument 6:
- An argument of ``D'' draws
a second bond between ring positions 2 and 3. All other argument values cause no action.
- Argument 7:
- An argument of ``Q'' causes
no action. An argument of ``D'' draws a second bond
between ring positions 4 and 5. All other argument values
are used as the substituent formula R7, the second
substituent at ring position 5.
- Arguments 8 and 9:
- The atomic symbols of the
hetero atoms in position 1 and 3, respectively.